home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-03 / qdice.zip / QDICE.DOC < prev    next >
Text File  |  1991-07-06  |  2KB  |  60 lines

  1.                         QuickDice 1.0 by Jason Miller
  2.  
  3.         The QuickDice library is a QuickLibrary containing functions that
  4. simulate the rolling of various types of dice.  The functions are user
  5. friendly and need no parameters, but the following is a list of the functions
  6. and their descriptions:
  7.  
  8.  
  9. d4, d6, d8, d10, d12, d20, and d100 Functions
  10.  
  11. Syntax:
  12.         d4, d6, d8, d10, d12, d20, d100
  13.  
  14. Description: These functions return random values between 1 and 4, 6, 8,
  15. 10, 12, 20, and 100, respectively.
  16.  
  17. Examples:
  18.  
  19. To assign the value of two six-sided dice to the variable TwoSixers%:
  20.         TwoSixers = d6 + d6
  21. To assign a value between 1 and 100 to the value PercentileDice%
  22.         PercentileDice% = d100
  23. To assign a number between 3 and 18 to the variable Wisdom%
  24.         Wisdom% = d6 + d6 + d6
  25. To print a value between 1 and 8
  26.         PRINT d8
  27.  
  28.  
  29. AlignmentDice Function
  30.  
  31. Syntax:
  32.         AlignmentDice
  33.  
  34. Description: This function returns a random AD&D game alignment in the
  35. form of a string.  The following values are possible, and all equally
  36. probable:
  37.         Lawful Good     Lawful Neutral  Lawful Evil
  38.         Lawful Neutral  True Neutral    Chaotic Neutral
  39.         Lawful Evil     Neutral Evil    Chaotic Evil
  40.  
  41. Examples:
  42. To print a random alignment
  43.         PRINT AlignmentDice
  44. To assign a random alignment to the variable MyAlignment$
  45.         MyAlignment$ = AlignmentDice
  46.  
  47.  
  48. Use these functions all you want in your own programs.  You may upload
  49. QuickDice, disassemble it, ZIP it, use it, copy it, or do whatever you
  50. want with it.  The following are a listing of QuickDice files, and short
  51. descriptions of what they do:
  52.  
  53. QDICE.DOC       These directions
  54. QDICE.LIB       Stand-alone library file for compiling
  55. QDICE.QLB       QuickLibrary file
  56. QDICE.BI        QuickBASIC Include file for QuickDice
  57.  
  58. Many things TM, (C), (R), etc. their respective owners.
  59.  
  60.